package com.tan.service.impl;

import com.tan.mapper.AirQualityIndexMapper;
import com.tan.mapper.util.PageUtil;
import com.tan.model.AirQualityIndex;
import com.tan.service.AirQualityIndexService;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

@Service
public class AirQualityIndexServiceImpl implements AirQualityIndexService {

    @Resource
    AirQualityIndexMapper qualityIndexMapper;

    @Override
    public List<AirQualityIndex> getAllAirQuality(PageUtil pageUtil) {
        return qualityIndexMapper.getAllAirQuality(pageUtil);
    }

    @Override
    public int getCount() {
        return qualityIndexMapper.getCount();
    }

    @Override
    public int delById(Integer id) {
        return qualityIndexMapper.delById(id);
    }

    @Override
    public int addAirQuality(AirQualityIndex qualityIndex) {
        return qualityIndexMapper.addAirQuality(qualityIndex);
    }
}
